document.getElementById('clock').innerHTML = `Now is ${new Date().toLocaleString()}`;

setInterval(() => {
    document.getElementById('clock').innerHTML = `Now is ${new Date().toLocaleString()}`;
}, 100);

function Home(){
    document.querySelector('button.NavigationBtn.mark[this]').removeAttribute('this');
    document.querySelector('button.NavigationBtn.mark#Home').toggleAttribute('this');
    const children = document.querySelector('div#Frame').children;
    for (var i = 0; i < children.length; i++){
        children[i].classList.add('hide');
    }
    document.querySelector('div#Frame div#Home').classList.remove('hide');
    closeMenu();
    checkIfHasID()
}

function checkIfHasID(){
    if (localStorage.getItem('ID') == null){
        document.querySelector('div#askforID').style.display = 'flex';
    } else {
        document.querySelector('div#askforID').style.display = 'none';
    }
}

checkIfHasID()